package com.hyz.login.controller;


import com.hyz.login.service.BedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zwq
 * @since 2022-11-19
 */
@RestController
@RequestMapping("/bed")
public class BedController {

    @Autowired
    private BedService bedService;

    @PostMapping("findAllDepId")
    public Object findAllDepId(Integer departmentId){
        return bedService.findByDepId(departmentId);
    }

}

